package com.imooc.spikesystem.dao;

import com.imooc.spikesystem.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author wy
 */
@Mapper
public interface UserDao {

    /**
     *
     * @param id
     * @return
     */
    @Select("select * from user where id = #{id}")
    public User getById(@Param("id") Integer id);
}
